import React,{ Component } from "react";
import { View,Text,StyleSheet,Button } from "react-native";

export default class HomePage extends Component {
    render(){
        const { navigation } = this.props;
        return (
            <View style={ styles.container }>
                <Text>
                    我的主页123
                </Text>
                <Button onPress={()=>{
                    navigation.navigate("page1",{ name:"动态的" });
                }} title="Go to page1"/>
                <Button onPress={()=>{
                    navigation.navigate("page2");
                }} title="Go to page2" />
                <Button onPress={()=>{
                    navigation.navigate("page3",{ title:"我的传递3", });
                }} title="Go to page3" />
                <Button onPress={()=>{
                    navigation.navigate("TabNavTor",{ title:"tabnav", });
                }} title="Go to TabNavTor" />
                <Button onPress={()=>{
                    navigation.navigate("DrawerNav",{ title:"tabnav", });
                }} title="Go to DrawerNav" />
            </View>
        )
    }
}

const styles = StyleSheet.create({
    container:{
        flex:1,
    }
});